﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Topro.DataAccess
{
    using Topro.Entity.Table;
    using Topro.Libraries.Data;

    public class IASRSJOBHISImpl : Base, IASRSJOBHIS
    {

        /// <summary>
        /// 插入
        /// </summary>
        /// <param name="model">模型</param>
        /// <returns></returns>
        public int Insert(ASRSJOBHIS model)
        {
            var result = DBContext.Insert<ASRSJOBHIS>("IT_ASRSJOB_HIS", model)
                                    .AutoMap(x => x.Id)
                                    .ExecuteReturnLastId<int>("Id");
            return result;
        }
    }
}
